﻿using System.Runtime.Serialization;

namespace LiSA_Server.Base.AbstractContracts
{
    /// <summary>
    /// An order
    /// </summary>
    [DataContract(Name = "Order")]
    public class Order
    {
        [DataContract(Name = "OrderMode")]
        public enum OrderMode
        {
            /// <summary>
            /// If none was set.
            /// </summary>
            [EnumMember]
            None = 0,

            /// <summary>
            /// The ascending.
            /// </summary>
            [EnumMember]
            Ascending = 1,

            /// <summary>
            /// The descending.
            /// </summary>
            [EnumMember]
            Descending = 2,
        }

        [DataMember(Name = "Field")]
        public string Field { get; set; }

        [DataMember(Name = "Mode")]
        public Order.OrderMode Mode { get; set; }
    }
}